import request from '@/utils/request'
// 获取开业辅导详情
export function Info(id) {
  return request({
    url: `/api/campus/open/${id}`,
    method: 'get'
  })
}

// 添加回访记录
export function addFollowUp(id, data) {
  return request({
    url: `/api/campus/open/${id}/followup`,
    method: 'post',
    data
  })
}

// 获取回访记录列表
export function getFollowUp(id, params) {
  return request({
    url: `/api/campus/open/${id}/followup`,
    method: 'get',
    params
  })
}

// 编辑回访记录
export function updateFollowUp(openId, data) {
  return request({
    url: `/api/campus/open/${openId}/followup/`,
    method: 'put',
    data
  })
}
